package com.example.kaoshi;

import java.util.Scanner;

/**
 * Created by Quincy on 2018/9/26.
 */
public class LinkWeight {

    public static void main(String[] args){
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        int[] arr = new int[n];
        for (int i = 0; i < n; i++){
            arr[i] = scanner.nextInt();
        }
        int[] edgeW = new int[n-1];
        for (int j = 0; j < n-1; j++){
            edgeW[j] = Math.abs(arr[j+1] - arr[j]);
        }
        for (int t = 0; t < n-1; t++){
            if (t == n)
                System.out.print(edgeW[t]);
            else
                System.out.print(edgeW[t]+"\t");

        }
    }



}
